/*
 * @Description:
 * @Author: your name
 * @version:
 * @Date: 2024-06-24 09:10:00
 * @LastEditors: your name
 * @LastEditTime: 2024-06-24 10:29:28
 */
import { createRouter, createWebHistory } from "vue-router"
import SetBuild from "../components/SetBuild.vue"
import SetInfo from "../components/SetInfo.vue"
import ScanInfo from "../components/ScanInfo.vue"
import MonitorSystem from "@/components/MonitorSystem.vue"

const routes = [
  { path: "/", redirect: "/setBuild" },
  { path: "/setBuild", component: SetBuild },
  { path: "/setInfo", component: SetInfo },
  { path: "/scanInfo", component: ScanInfo },
  {
    path: "/emergency",
    component: () => import("../components/Emergency.vue"),
  },
  { path: "/marker", component: () => import("../components/MarkerTool.vue") },
  {
    path: "/personnel",
    name: "personnel",
    component: () => import("../components/PersonnelManagement.vue"),
  },
  {
    path: "/fee",
    name: "fee",
    component: () => import("../components/FeeManagement.vue"),
  },
  {
    path: "/monitor",
    name: "Monitor",
    component: MonitorSystem,
    meta: {
      title: "监控系统",
      icon: "VideoCameraOutlined",
    },
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: routes,
})

export default router
